find_package(Qt4 REQUIRED)
add_definitions(${QT_DEFINTIONS})
include_directories(${QT_INCLUDE_DIR})
include(${QT_USE_FILE})

set(playmidi_srcs
    playmidi.cpp
)

set(playmidi_libDirs
    .
)

set(playmidi_libs
    improv
)

include_directories(../improv .)

if(WIN32)
    add_definitions(-DVISUAL)
else(WIN32)
    if(UNIX)
        if(APPLE)
        else(APPLE)
            add_definitions(-DLINUX)
        endif(APPLE)
    endif(UNIX)
endif(WIN32)

add_executable(playmidi ${playmidi_srcs})

target_link_libraries(playmidi ${playmidi_libs})

link_directories(${playmidi_libDirs})
